<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Home</title>
    <link rel="stylesheet" href="/tp5/public/static/bootstrap-3.3.7-dist/css/bootstrap.min.css">
</head>
<body class="container">
    <h1>Countryroad take me home</h1>
    <h5> on TeacherController\index</h5>
    <div class="row">
        <div class="col-md-12">
            <table class="table table-hover table-bordered">

                <tr>
                    <th>序号</th>
                    <th>姓名</th>
                    <th>性别</th>
                    <th>邮箱</th>
                    <th>用户名</th>
                </tr>
                {volist name="teachers" id="teacher" key="key"}
                <tr>
                <td>{$key}</td>
                <td>{$teacher->getData('name')}</td>
                <td>{$teacher->getData('sex')}</td>
                <td>{$teacher->getData('email')}</td>
                <td>{$teacher->getData('username')}</td>
                </tr>
                {/volist}

            </table>
        </div>

    </div>

</body>
</html>